SET ver=1.8.1

SET YYYY=%DATE:~0,4%
SET MM=%DATE:~5,2%
SET DD=%DATE:~8,2%


SET HH=%TIME:~0,2%
SET MI=%TIME:~3,2%
SET SS=%TIME:~6,2%

md  .\gw_version\sgw_%YYYY%%MM%%DD%_%HH%%MI%%SS%_%ver%

copy rtthread.bin .\gw_version\sgw_%YYYY%%MM%%DD%_%HH%%MI%%SS%_%ver%\sgw_%YYYY%%MM%%DD%_%ver%.bin
copy rtthread.elf .\gw_version\sgw_%YYYY%%MM%%DD%_%HH%%MI%%SS%_%ver%\sgw_%YYYY%%MM%%DD%_%ver%.elf
copy rtthread.hex .\gw_version\sgw_%YYYY%%MM%%DD%_%HH%%MI%%SS%_%ver%\sgw_%YYYY%%MM%%DD%_%ver%.hex
copy sgw_uboot_v1.7.bin .\gw_version\sgw_%YYYY%%MM%%DD%_%HH%%MI%%SS%_%ver%\
copy sgw_uboot_v1.7.elf .\gw_version\sgw_%YYYY%%MM%%DD%_%HH%%MI%%SS%_%ver%\

copy esp32c2\esp32c2_at_ble_spp.bin .\gw_version\sgw_%YYYY%%MM%%DD%_%HH%%MI%%SS%_%ver%\

copy version_update_note.txt .\gw_version\sgw_%YYYY%%MM%%DD%_%HH%%MI%%SS%_%ver%\

pause